package com.qidian.buy.goods.controller;

import com.qidian.buy.common.pojo.BuyResult;
import com.qidian.buy.goods.service.IItemCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 戴着假发的程序员
 * @company 起点编程
 * @date 2024/7/17 14:05
 */
@CrossOrigin
@RestController
@RequestMapping("/itemCat")
public class ItemCategoryController {
    @Autowired
    private IItemCategoryService catService;

    @GetMapping("/queryAll")
    public BuyResult queryAll(){
        return catService.queryAll();
    }
}
